package admin

import (
	auto "beergo/app/check/auto/controller"
	"beergo/app/check/conf"
	"github.com/beego/beego/v2/server/web"
)

type UserAdminController struct {
	auto.UserController
}

func init() {
	web.Router(conf.UrlPrefixAdmin + "/User/:id", 		&UserAdminController{}, "*:GetAction")
	web.Router(conf.UrlPrefixAdmin + "/User/info", 		&UserAdminController{}, "*:InfoAction")
	web.Router(conf.UrlPrefixAdmin + "/User/scan", 		&UserAdminController{}, "*:ScanAction")
	web.Router(conf.UrlPrefixAdmin + "/User/list", 	    &UserAdminController{}, "*:ListAction")
	web.Router(conf.UrlPrefixAdmin + "/User/update", 	&UserAdminController{}, "*:UpdateAction")
	web.Router(conf.UrlPrefixAdmin + "/User/create", 	&UserAdminController{}, "*:CreateAction")
	web.Router(conf.UrlPrefixAdmin + "/User/copy", 	    &UserAdminController{}, "*:CopyAction")
	web.Router(conf.UrlPrefixAdmin + "/User/edit", 	    &UserAdminController{}, "*:EditAction")
	web.Router(conf.UrlPrefixAdmin + "/User/delete", 	&UserAdminController{}, "*:DeleteAction")
	web.Router(conf.UrlPrefixAdmin + "/User/:id/:field", &UserAdminController{}, "*:SonsAction")
	web.Router(conf.UrlPrefixAdmin + "/User/choice", &UserAdminController{}, "*:ChoiceAction")
	web.Router(conf.UrlPrefixAdmin + "/User/category", &UserAdminController{}, "*:CategoryAction")
}
//func (this *UserAdminController) Prepare() {}
//func (this *UserAdminController) ListAction() {}
//func (this *UserAdminController) GetAction() {}
//func (this *UserAdminController) InfoAction() {}
//func (this *UserAdminController) ScanAction() {}
//func (this *UserAdminController) CreateAction() {}
//func (this *UserAdminController) UpdateAction() {}
//func (this *UserAdminController) CopyAction() {}
//func (this *UserAdminController) DeleteAction() {}
//func (this *UserAdminController) EditAction() {}
//func (this *UserAdminController) SonsAction() {}
//func (this *UserAdminController) ChoiceAction() {}
//func (this *UserAdminController) CategoryAction() {}
